import request from '@/utils/request'

// 查询临工岗位关系列表
export function listTmpuserpost(query) {
  return request({
    url: '/business/tmpuserpost/list',
    method: 'get',
    params: query
  })
}

// 查询临工岗位关系详细
export function getTmpuserpost(id) {
  return request({
    url: '/business/tmpuserpost/' + id,
    method: 'get'
  })
}

// 新增临工岗位关系
export function addTmpuserpost(data) {
  return request({
    url: '/business/tmpuserpost',
    method: 'post',
    data: data
  })
}

// 修改临工岗位关系
export function updateTmpuserpost(data) {
  return request({
    url: '/business/tmpuserpost',
    method: 'put',
    data: data
  })
}

// 删除临工岗位关系
export function delTmpuserpost(id) {
  return request({
    url: '/business/tmpuserpost/' + id,
    method: 'delete'
  })
}

// 导出临工岗位关系
export function exportTmpuserpost(query) {
  return request({
    url: '/business/tmpuserpost/export',
    method: 'get',
    params: query
  })
}